<!-- 样式 -->
<style>
    .user_head{float: left;font-weight: bold;padding: 5px;font-size: 14px;width: 100%;}
    .user_info{float: left;width: 100%;}
    .user_info ul{width: 100%;}

    .user_info .line{float: left;width: 100%;padding: 5px 0;}
    .user_info .line .title{float: left;width: 9.9%;text-align:right;}
    .user_info .line .content{float: left;width: 90.1%;text-align:left;}

    .user_info .heads{float: left;width: 33%;padding: 5px 0;}
    .user_info .heads .title{float: left;width: 30%;text-align:right;}
    .user_info .heads .content{float: left;width: 70%;text-align:left;}

    .user_info .material{float: left;width: 100%;padding: 5px 0;}
    .user_info .material .name{float: left;width: 9.9%;text-align:right;}
    .user_info .material .content{float: left;width: 15%;text-align:left;}
    .user_info .material .data1{float: left;width: 10%;text-align:left;}
    .user_info .material .data2{float: left;width: 10%;text-align:left;}
    .user_info .material .data3{float: left;width: 15%;text-align:left;}
    .user_info .material .data4{float: left;width: 15%;text-align:left;}
    .user_info .material .data5{float: left;width: 10%;text-align:left;}
    .user_info .material .operation{float: left;text-align:left;}

    .user_info a{cursor: pointer;color: #ffffff;padding-right: 10px;}

    .user_msg {margin-left: 25px;color: red;font-weight: bold;}
</style>

<!-- 编辑区域 -->
<div class="lists_empty">
    <!--添加客户表单-->
    <div class="tab_edit_empty">
        <div class="user_head">客户基础信息</div>
        <div class="user_info">
            <ul >
                <li class="line"><span class="title">头像：</span><span class="content">{:widget('common/Images/img',array($user_info['avatar'],80,80))}</span></li>
                <li class="heads"><span class="title">客户编号：</span><span class="content">{$user_info['user_id']}</span></li>
                <li class="heads"><span class="title">所属合作商：</span><span class="content">{:widget('common/Name/cooperate',array($user_info["cooperate_id"]))}</span></li>
                <li class="heads"><span class="title">所属业务员：</span><span class="content">{:widget('common/Name/cooperate_admin',array($user_info["cooperate_admin_id"]))}</span></li>
                <li class="heads"><span class="title">所在城市：</span><span class="content">{:widget('common/Name/area',array($user_info["province_id"]))}、{:widget('common/Name/area',array($user_info["city_id"]))}</span></li>
                <li class="heads"><span class="title">昵称：</span><span class="content">{$user_info['nick']}</span></li>
                <li class="heads"><span class="title">真实姓名：</span><span class="content">{$user_info['real']}</span></li>
                <li class="heads"><span class="title">身份证号码：</span><span class="content">{$user_info['identity']}</span></li>
                <li class="heads"><span class="title">电话号码：</span><span class="content">{$user_info['phone']}</span></li>
                <li class="heads"><span class="title">信用额度：</span><span class="content">{$user_info['credit_limit']}</span></li>
                <li class="heads"><span class="title">性别：</span><span class="content">{:widget('common/Color/Color',array("sex",$user_info['sex']))}</span></li>
                <li class="heads"><span class="title">年龄：</span><span class="content">{$user_info['age']}</span></li>
                <li class="heads"><span class="title">出生日期：</span><span class="content">{$user_info['birthday']}</span></li>
                <li class="heads"><span class="title">客户状态：</span><span class="content">{:widget('common/Color/Color',array("user_status",$user_info['user_status']))}</span></li>
                <li class="heads"><span class="title">来源：</span><span class="content">{:widget('common/Color/Color',array("source",$user_info['source']))}</span></li>
                <li class="heads"><span class="title">是否设置支付密码：</span><span class="content">{:widget('common/Color/Color',array("is_pay_pwd",$user_info['is_pay_pwd']))}</span></li>
                <li class="heads"><span class="title">是否实名：</span><span class="content">{:widget('common/Color/Color',array("is_real",$user_info['is_real']))}</span></li>
                <li class="heads"><span class="title">是否学生：</span><span class="content">{:widget('common/Color/Color',array("is_student",$user_info['is_student']))}</span></li>
                <li class="heads"><span class="title">文化程度：</span><span class="content">{:widget('common/Color/Color',array("education",$user_info['education']))}</span></li>
                <li class="heads"><span class="title">客户职业：</span><span class="content">{$user_info['occupation']}</span></li>


                <li class="heads"><span class="title">是否有社保：</span><span class="content">{:widget('common/Color/Color',array("is_social",$user_info['is_social']))}</span></li>
                <li class="heads"><span class="title">是否有公积金：</span><span class="content">{:widget('common/Color/Color',array("is_accumulation_fund",$user_info['is_accumulation_fund']))}</span></li>
                <li class="heads"><span class="title">婚姻状况：</span><span class="content">{:widget('common/Color/Color',array("is_marry",$user_info['is_marry']))}</span></li>
                <li class="heads"><span class="title">是否黑户：</span><span class="content">{:widget('common/Color/Color',array("is_white",$user_info['is_white']))}</span></li>
                <li class="heads"><span class="title">是否有过贷款：</span><span class="content">{:widget('common/Color/Color',array("is_loan",$user_info['is_loan']))}</span></li>


                <li class="heads"><span class="title">是否有逾期记录：</span><span class="content">{:widget('common/Color/Color',array("is_overdue",$user_info['is_overdue']))}</span></li>
                <li class="heads"><span class="title">是否有车：</span><span class="content">{:widget('common/Color/Color',array("is_car",$user_info['is_car']))}</span></li>
                <li class="heads"><span class="title">是否有房：</span><span class="content">{:widget('common/Color/Color',array("is_house",$user_info['is_house']))}</span></li>
                <li class="heads"><span class="title">是否有信用卡：</span><span class="content">{:widget('common/Color/Color',array("is_credit_card",$user_info['is_credit_card']))}</span></li>
                <li class="heads"><span class="title">是否有保单：</span><span class="content">{:widget('common/Color/Color',array("is_policy",$user_info['is_policy']))}</span></li>
                <li class="heads"><span class="title">是否有公司：</span><span class="content">{:widget('common/Color/Color',array("is_company",$user_info['is_company']))}</span></li>
                <li class="heads"><span class="title">是否有法院执行记录：</span><span class="content">{:widget('common/Color/Color',array("is_court",$user_info['is_court']))}</span></li>


                <li class="heads"><span class="title">实名时间：</span><span class="content">{$user_info['real_time']}</span></li>
                <li class="heads"><span class="title">最后登录时间：</span><span class="content">{$user_info['login_time']}</span></li>
                <li class="heads"><span class="title">最后登录IP：</span><span class="content">{$user_info['login_ip']}</span></li>
                <li class="heads"><span class="title">注册时间：</span><span class="content">{$user_info['reg_time']}</span></li>
                <li class="heads"><span class="title">注册IP：</span><span class="content">{$user_info['reg_ip']}</span></li>
                <li class="line"><span class="title">户籍地址：</span><span class="content">{$user_info['birth_address']}</span></li>
                <li class="line"><span class="title">居住地址：</span><span class="content">{$user_info['domicile_address']}</span></li>
                <li class="line"><span class="title">工作地址：</span><span class="content">{$user_info['work_address']}</span></li>
                <li class="line"><span class="title">备注：</span><span class="content">{$user_info['remark']}</span></li>
            </ul>
        </div>
        {empty name="user_relative_list"}
            <div class="user_head">亲属联系方式信息</div>
            <div class="user_msg">客户未添加亲属联系方式信息！</div>
        {else/}
            <div class="user_head">亲属联系方式信息</div>
            <div class="user_info">
                <ul >
                    {foreach name="user_relative_list" item="info"}
                    <li class="material">
                        <span class="name">亲属姓名：</span>
                        <span class="content">{$info['relative_name']}</span>
                        <span class="data1">联系方式：{$info['phone']}</span>
                        <span class="data2">关系：{$info['relation']}</span>
                        <span class="data3">创建时间：{$info.create_time}</span>
                        <span class="data4">是否历史数据：{:widget('common/Color/Color',array("is_history",$info['is_history']))}</span>
                    </li>
                    {/foreach}
                </ul>
            </div>
        {/empty}

        {empty name="overdue_info"}
        <div class="user_head">客户逾期信息【{:widget('common/Color/Color',array("is_overdue",$user_info['is_overdue']))}】</div>
        {else/}
        <div class="user_head">客户逾期信息【{:widget('common/Color/Color',array("is_overdue",$user_info['is_overdue']))}】</div>
        <div class="user_info">
            <table class="pointer" border="1 " width="92%" style="margin-left: 51px;border: #999999d9;">
                <thead style="font-size: 19px;">
                <th style="width: 6%;" class="tabSort-header"><p>日期</p></th>
                <th style="width: 6%;" class="tabSort-header"><p>是否有逾期</p></th>
                <th style="width: 8%;" class="tabSort-header"><p>未超过30天</p></th>
                <th style="width: 10%;" class="tabSort-header"><p>30天以上</p></th>
                <th style="width: 6%;" class="tabSort-header"><p>60天以上</p></th>
                <th style="width: 6%;" class="tabSort-header"><p>90天以上</p></th>
                </thead>
                <tbody>
                {foreach name="overdue_info" item="info"}
                <tr>
                    <td>
                        {switch name="$key"}
                        {case value='half_year'}
                        最近半年
                        {/case}
                        {case value='one_year'}
                        最近一年
                        {/case}
                        {case value='three_year'}
                        最近三年
                        {/case}
                        {case value='continuity'}
                        连续逾期
                        {/case}
                        {/switch}
                    </td>
                    <td>{:widget('common/Color/Color',array("is_yes",$info['is_overdue']))}</td>
                    <td>{$info.less_30}次</td>
                    <td>{$info.over_30}次</td>
                    <td>{$info.over_60}次</td>
                    <td>{$info.over_90}次</td>
                </tr>
                </tbody>
                {/foreach}
            </table>
        </div>
        {/empty}

        {empty name="user_house_list"}
            <div class="user_head">客户房产信息【{:widget('common/Color/Color',array("is_house",$user_info['is_house']))}】</div>
            <div class="user_msg">客户未添加房产信息！</div>
        {else/}
            <div class="user_head">客户房产信息【{:widget('common/Color/Color',array("is_house",$user_info['is_house']))}】<a data-type="info-win" data-src="{:Url('user_house_list',array('user_id'=>$user_info['user_id']))}" data-title="查看历史记录" data-width="80%" data-height="80%" class="blue">查看历史记录</a></div>
            <div class="user_info">
                <ul >
                    {foreach name="user_house_list" item="info"}
                    <li class="material">
                        <span class="name">房产详细地址：</span>
                        <span class="data1">面积：{$info.area}平米</span>
                        <span class="data2">估价：￥{$info.price}万元</span>
                        <span class="data4">付款方式：{:widget('common/Color/Color',array("user_car_pay_type",$info['pay_type']))}</span>
                        <span class="data4">类型：{:widget('common/Color/Color',array("house_type",$info['house_type']))}</span>
                        <span class="operation">
                            <a data-type="info-win" data-src="{:Url('user_house_info',array('user_house_id'=>$info['user_house_id']))}" data-title="查看房产详情" data-width="80%" data-height="80%" class="blue">查看详情</a>
                        </span>
                    </li>
                    {/foreach}
                </ul>
            </div>
        {/empty}

        {empty name="user_policy_list"}
            <div class="user_head">客户保单信息【{:widget('common/Color/Color',array("is_policy",$user_info['is_policy']))}】</div>
            <div class="user_msg">客户未添加保单信息！</div>
        {else/}
            <div class="user_head">客户保单信息【{:widget('common/Color/Color',array("is_policy",$user_info['is_policy']))}】<a data-type="info-win" data-src="{:Url('user_policy_list',array('user_id'=>$user_info['user_id']))}" data-title="查看历史记录" data-width="80%" data-height="80%" class="blue">查看历史记录</a></div>
            <div class="user_info">
                <ul >
                    {foreach name="user_policy_list" item="info"}
                    <li class="material">
                        <span class="name">保险公司：</span>
                        <span class="content">{$info.company_name}</span>
                        <span class="data1">是否历史：{:widget('common/Color/Color',array("is_history",$info['is_history']))}</span>
                        <span class="data2">状态：{:widget('common/Color/Color',array("policy_status",$info['policy_status']))}</span>
                        <span class="data3">投保人：{$info.applicant_name}</span>
                        <span class="data5">缴费金额：￥{$info.pay_money}元</span>
                        <span class="operation">
                            <a data-type="info-win" data-src="{:Url('user_policy_info',array('user_policy_id'=>$info['user_policy_id']))}" data-title="查看详细" data-width="80%" data-height="80%" class="blue">查看详细</a>
                        </span>
                    </li>
                    {/foreach}
                </ul>
            </div>
        {/empty}

        {empty name="user_car_list"}
            <div class="user_head">客户车辆信息【{:widget('common/Color/Color',array("is_car",$user_info['is_car']))}】</div>
            <div class="user_msg">客户未添加车辆信息！</div>
        {else/}
            <div class="user_head">客户车辆信息【{:widget('common/Color/Color',array("is_car",$user_info['is_car']))}】<a data-type="info-win" data-src="{:Url('user_car_list',array('user_id'=>$user_info['user_id']))}" data-title="查看历史记录" data-width="80%" data-height="80%" class="blue">查看历史记录</a></div>
            <div class="user_info">
                <ul >
                    {foreach name="user_car_list" item="info"}
                    <li class="material">
                        <span class="name">车辆品牌信号信息：</span>
                        <span class="content">{:widget('common/Name/car_brand',array($info['car_brand_id']))}、{:widget('common/Name/car_model',array($info['car_model_id']))}、{:widget('common/Name/car_config',array($info['car_config_id']))}</span>
                        <span class="data1">是否历史：{:widget('common/Color/Color',array("is_history",$info['is_history']))}</span>
                        <span class="data2">状态：{:widget('common/Color/Color',array("car_status",$info['car_status']))}</span>
                        <span class="data3">购买价格：￥{$info.car_money}万元</span>
                        <span class="data4">付款方式：{:widget('common/Color/Color',array("user_car_pay_type",$info['pay_type']))}</span>
                        <span class="operation">
                            <a data-type="info-win" data-src="{:Url('user_car_info',array('user_car_id'=>$info['user_car_id']))}" data-title="查看详细" data-width="80%" data-height="80%" class="blue">查看详细</a>
                        </span>
                    </li>
                    {/foreach}
                </ul>
            </div>
        {/empty}

        {empty name="user_credit_card_list"}
            <div class="user_head">客户信用卡信息【{:widget('common/Color/Color',array("is_credit_card",$user_info['is_credit_card']))}】</div>
            <div class="user_msg">客户未添加信用卡信息！</div>
        {else/}
            <div class="user_head">客户信用卡信息【{:widget('common/Color/Color',array("is_credit_card",$user_info['is_credit_card']))}】<a data-type="info-win" data-src="{:Url('user_credit_card_list',array('user_id'=>$user_info['user_id']))}" data-title="查看历史记录" data-width="80%" data-height="80%" class="blue">查看历史记录</a></div>
            <div class="user_info">
                <ul >
                    {foreach name="user_credit_card_list" item="info"}
                    <li class="material">
                        <span class="name">发卡银行：</span>
                        <span class="content">{:widget('common/Name/bank',array($info['bank_id']))}</span>
                        <span class="data1">是否历史：{:widget('common/Color/Color',array("is_history",$info['is_history']))}</span>
                        <span class="data2">状态：{:widget('common/Color/Color',array("credit_card_status",$info['credit_card_status']))}</span>
                        <span class="data3">信用卡额度：￥{$info.amount}元</span>
                        <span class="data4">已使用额度：￥{$info.used_amount}元</span>
                        <span class="operation">
                            <a data-type="info-win" data-src="{:Url('user_credit_card_info',array('user_credit_card_id'=>$info['user_credit_card_id']))}" data-title="查看详细" data-width="80%" data-height="80%" class="blue">查看详细</a>
                        </span>
                    </li>
                    {/foreach}
                </ul>
            </div>
        {/empty}
    </div>
</div>